import request from "/request/request.js"
const bannerHome ="/api/bizhi/homeBanner";
const randomWall = '/api/bizhi/randomWall';
const wallNewList = "/api/bizhi/wallNewsList"
const wallClassify = '/api/bizhi/classify';
const wallList = '/api/bizhi/wallList';
const getScore ="/api/bizhi/setupScore";
const getUserInfo = "/api/bizhi/userInfo";
const myDownFen = '/api/bizhi/userWallList'

export const getHomeBanner = ()=>request.get(bannerHome+`/pageSize=${8}`);
export const getRandomWall = ()=>request.get(randomWall);
export const getWallNewsList = (boo)=>request.get(wallNewList+`?select=${boo}`);
export const getWallClassify = ()=>request.get(wallClassify);
export const getWallList = (classid,pageNum=1,pageSize=12)=>
		request.get(wallList+`?classid=${classid}&pageNum=${pageNum}&pageSize=${pageSize}`)
export const pushScore = (classid,wallid,score)=>
		request.get(getScore+`/classid=${classid}&wallId='65237031189f860b7613acf4'&userScore=${score}`)
export const getInfo = ()=>request.get(getUserInfo)
export const downFen = (name,pageNum=1,pageSize=8)=>request.get(myDownFen+`?type=${name}&pageNum=${pageNum}&pageSize=${pageSize}`)
